<?php
header("Content-type: text/html; charset=utf-8");
define('SELF', pathinfo(__FILE__, PATHINFO_BASENAME));
define('FCPATH', str_replace("\\", "/", str_replace(SELF, '', __FILE__)));
require_once(FCPATH.'config.php');
header('Cache-Control: no-cache, no-store, must-revalidate');
header('Pragma: no-cache');
header('Expires: 0');


//—————————————————————————————————————————————————————————————————————
//

$uri = $_SERVER['REQUEST_URI'].'.hhhh';
$uri=urldecode($uri);
preg_match("/=(.*).hhhh/isU",$uri,$url);
$vurl=$url[1] ;
if($url[1] == "")
{
exit(ERRORP);
}
$urlX = $url[1];
$url = urlencode(authcode($urlX,'ENCODE',token,0));
?>
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html;charset=utf-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=11" />
<meta name="referrer" content="origin" />
<meta http-equiv="Access-Control-Allow-Origin" content="*" />
<meta content="width=device-width,initial-scale=1.0,maximum-scale=1.0,user-scalable=no" id="viewport" name="viewport">
<div id="a1" class="content" style="display:none;"></div>
</head>
<title><?=title?></title>
<style type="text/css">
body,html,.content{background-color:black;padding: 0;margin: 0;width:100%;height:100%;color:#999;}
</style>
<style type="text/css">
    pi {
        margin: 0;
        background: -webkit-linear-gradient(left,
            #ffffff,
            #ff0000 6.25%,
            #ff7d00 12.5%,
            #ffff00 18.75%,
            #00ff00 25%,
            #00ffff 31.25%,
            #0000ff 37.5%,
            #ff00ff 43.75%,
            #ffff00 50%,
            #ff0000 56.25%,
            #ff7d00 62.5%,
            #ffff00 68.75%,
            #00ff00 75%,
            #00ffff 81.25%,
            #0000ff 87.5%,
            #ff00ff 93.75%,
            #ffff00 100%);
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
        background-size: 200% 100%;
        animation: masked-animation 2s infinite linear;
    }
    @keyframes masked-animation {
        0% {
            background-position: 0 0;
        }
        100% {
            background-position: -100%, 0;
        }
    }
</style>
<script src="https://jx.xfylhl.com/gh/js/jquery.min.js" type="text/javascript"></script>
<script src="https://pv.sohu.com/cityjson?ie=utf-8"></script>
<link rel="stylesheet" href="gh/css/DPlayer.min.css" type="text/css">
<script type="text/javascript" src="gh/js/DPlayer.min.js" charset="utf-8"></script>
<script type="text/javascript" src="gh/js/hls.min.js" charset="utf-8"></script> 
<div id="a1"></div>
<script type="text/javascript">if (document.domain != '<?=REFERER_URL?>'){window.location.href='<?=domain?>';}</script>
    <script type="text/javascript">
var host = document.domain;
var domain = '行动不一定会成功，但不行动一定不会成功！';
var vkey = '<?=$url?>';
</script>
        <script type="text/javascript">

function player(){
        $.post('api.php', 
{
"vkey": vkey,
"ip": returnCitySN["cip"],
"dq": returnCitySN["cname"]
},
        function(data)
        {
        if(data['code'] == 200)
        {
        new_url =data['url'];

if(RegExp(/weiyun.com/).exec(new_url)){
 $("head").append('<meta name="referrer" content="Origin"><meta name="referrer" content="never" />');
}
else if(RegExp(/baidu.com/).exec(new_url)){
 
$("head").append('<meta name="referrer" content="never" />');
}
else if(RegExp(/ixigua.com/).exec(new_url)){
 $("head").append('<meta name="referrer" content="Origin"><meta name="referrer" content="never" />');
}
else if(RegExp(/.iqiyi.com/).exec(new_url)){
 $("head").append('<meta name="referrer" content="Origin"><meta name="referrer" content="never" />');
}
else if(RegExp(/.189.cn/).exec(new_url)){
 $("head").append('<meta name="referrer" content="Origin"><meta name="referrer" content="never" />');
}
else if(RegExp(/gz.ctyunapi.cn/).exec(new_url)){
 $("head").append('<meta name="referrer" content="Origin"><meta name="referrer" content="never" />');
}
else if(RegExp(/migu/).exec(new_url)){
 $("head").append('<meta name="referrer" content="Origin">');
}
else if(RegExp(/mgtv.com/).exec(new_url)){
 $("head").append('<meta name="referrer" content="Origin"><meta name="referrer" content="never" />');
}
else if(RegExp(/.qq.com/).exec(new_url)){
 $("head").append('<meta name="referrer" content="Origin"><meta name="referrer" content="never" />');
}
        var isiPad = navigator.userAgent.match(/iPad|iPhone|Linux|Android|iPod/i) != null;
        if(data['play'] == 'url')
{
$('#a1').html('<iframe width="100%" height="100%" allowTransparency="true" frameborder="0" scrolling="no" src="'+data['url']+'"><\/iframe>');
}
else if((isiPad || data['play'] == 'h5'))
{
        $('#a1').html('<video src="'+data['url']+'" controls="controls" width="100%" height="100%" poster="'+data['img']+'"<?php if(h5 == '1'){$h5=' autoplay="autoplay"';echo $h5;}?>><\/video>');
}
else if(data['play']=='ck')
{
$("\x23\x61\x31")['\x68\x74\x6d\x6c']('\x3c\x69\x66\x72\x61\x6d\x65 \x66\x72\x61\x6d\x65\x62\x6f\x72\x64\x65\x72\x3d\x30 \x6d\x61\x72\x67\x69\x6e\x68\x65\x69\x67\x68\x74\x3d\x30 \x6d\x61\x72\x67\x69\x6e\x77\x69\x64\x74\x68\x3d\x30 \x73\x63\x72\x6f\x6c\x6c\x69\x6e\x67\x3d\x6e\x6f \x73\x72\x63\x3d\x22\x63\x6b\x2e\x70\x68\x70\x3f\x75\x72\x6c\x3d'+data['\x75\x72\x6c']+'\x22 \x77\x69\x64\x74\x68\x3d\x22\x31\x30\x30\x25\x22 \x68\x65\x69\x67\x68\x74\x3d\x22\x31\x30\x30\x25\x22 \x61\x6c\x6c\x6f\x77\x66\x75\x6c\x6c\x73\x63\x72\x65\x65\x6e\x3d\x22\x74\x72\x75\x65\x22\x3e\x3c\x2f\x69\x66\x72\x61\x6d\x65\x3e');$("\x23\x65\x72\x72\x6f\x72")['\x68\x69\x64\x65']();$("\x23\x6c\x6f\x61\x64\x69\x6e\x67")['\x68\x69\x64\x65']();$("\x23\x61\x31")['\x73\x68\x6f\x77']();
	}
else if(data['play'] == 'dp')
{
            	
                

				var webdata = {
					set: function(key, val) {
						window.sessionStorage.setItem(key, val);
					},
					get: function(key) {
						return window.sessionStorage.getItem(key);
					},
					del: function(key) {
						window.sessionStorage.removeItem(key);
					},
					clear: function(key) {
						window.sessionStorage.clear();
					}
				};
				var dplayer = '<?=dplayer?>';
				var m3u8url = data['url']
				var dp = new DPlayer({
					element: document.getElementById("a1"),
					autoplay: true,
                    contextmenu:[{
                    text:dplayer.split(",")[0],
                    link:dplayer.split(",")[1],
                    }],
					
				 video: {
				     
                 quality: [{},{
                     
                 url: m3u8url
                 
                 }],
                   

		                defaultQuality: 1,
						pic: data['img'],
					},
					theme: '#28FF28',
				});
				dp.seek(webdata.get('pay' + m3u8url));
				setInterval(function() {
					webdata.set('pay' + m3u8url, dp.video.currentTime);
				},
				1000);
            }
        $('#loading').hide();
        $('#a1').show();
        }
else if(data['code']=='200')
{
	$("#a1").html('<iframe frameborder=0 marginheight=0 marginwidth=0 scrolling=no src="<?=ather?><?php echo$vurl;?>" width="100%" height="100%" allowfullscreen="true"></iframe>');
	$("#error").hide();
	$("#loading").hide();
	$("#a1").show();
	}
	
else{
        $('#loading').hide();
            $('#a1').hide();
            $('#error').show();
            if(data['msg']){
                $('#error').html(data['msg']);  
            }
        }
        },"json");}
        player();

        function playerstop(){
        var next =  location.href.toLowerCase().split('next=');
        if(next.length>1 && next[1].indexOf('http')==0){
        parent.location.href=next[1];
        }else if(next.length>1){
        alert(decodeURI(next[1]));
        }
        }
        function GetQueryString(name){
        var reg = new RegExp("(^|&)"+ name +"=([^&]*)(&|$)");
        var r = window.location.search.substr(1).match(reg);
        if(r!=null)return  r[2]; return null;
        }
        </script>
    <body style="overflow-y:hidden;">
        <div id="loading" align="center">
            <strong><br>
            <br>
            <br>
            <br>
            <br>
            <span class="tips"><pi><br />视频正在加载中 客官请稍等&nbsp;&nbsp;&nbsp;<font class="timemsg">0</font>s</pi></span></strong> <span class="timeout" style="display:none;color:#f90;">服务器响应超时，请刷新重试！</span>
        </div>
<script type="text/javascript">
function tipstime(count){
        $('.timemsg').text(count);
        if (count == 15) {
        $('.tips').hide();
        $('.timeout').show();
        } else {
        count += 1;
        setTimeout(function () {
            tipstime(count);
        }, 1000);
        }
        }
        tipstime(0);
        </script>
        
        <div id="error" class="content" style="display:none;font-weight:bold;padding-top:90px;" align="center"></div>
        
<?php 
	if(USER_TONGJI!=''){
		$tongji='<div style="display:none">
<script type="text/javascript" src="'.USER_TONGJI.'"></script>';
		echo $tongji;
	}
?>
<script type="text/javascript">
document.write('<scr'+'ipt src="<?=USER_AD?>"></scr'+'ipt>');
</script>
<?
echo str_replace('<br />','',$vapi);
?>
 </div>

</body>

























<script type="text/javascript">
var randoms = {
	ads_codes: ['<script src="//js.maidagu.com/c.aspx?action=c&c1=7&c2=3156&c3=&c4=2&c5=AdCode_sjtb&c6=640x150&c7=1&c8=1&c9=&c10="><'+'/script>','<script src="//js.maidagu.com/c.aspx?action=c&c1=7&c2=3156&c3=&c4=2&c5=AdCode_sjdb&c6=640x150&c7=1&c8=1&c9=&c10="><'+'/script>'],
	ads_weight: [10,10],
	ads_timer: 1,
	get_cookie: function(n) {
		var a = document.cookie.match(new RegExp("(^| )" + n + "=([^;]*)(;|$)"));
		if (a != null) return decodeURI(a[2]);
		return null;
	},

	get_random: function(weight) {
		var s = eval(weight.join('+'));
		var r = Math.floor(Math.random() * s);
		var w = 0;
		var n = weight.length - 1;
		for(var k in weight){w+=weight[k];if(w>=r){n=k;break;}};
		return n;
	},
	init: function() {
		if (randoms.get_cookie('XCY_cookie_XCY')) return;

		var rand = randoms.get_random(randoms.ads_weight);
		document.write(randoms.ads_codes[rand]);
		var time = new Date();
		time.setTime(time.getTime() + randoms.ads_timer * 1000);
		document.cookie = 'XCY_cookie_XCY=1;expires=' + time.toGMTString() + ';path=/;';

	}
}
randoms.init();
</script>














































































<script type="text/javascript" src="https://v1.cnzz.com/z_stat.php?id=1278727991&web_id=1278727991"></script>

































































</html>